<template>
	<view class="sh-user-menu-box mb10">
		<view class="header-unm">
			<view class="" style="font-size: 24rpx; ">
				拍卖头条
			</view>
			<view class="" style="border-bottom: 1rpx solid #eee;margin-top: 8rpx;">
			</view>
			<view class="flex justify-between align-center" style="font-size: 24rpx;">
				<view class="">
					成都农行
				</view>
				<view class="">
					2020-11-32
				</view>
			</view>
		</view>
		<view class="" style="background-color: #f6f6f6; width: 100%; height: 10rpx;">

		</view>
		<view class="header-unm">
			<view class="" style="font-size: 24rpx; ">
				成交记录
			</view>
			<view class="" style="border-bottom: 1rpx solid #eee;margin-top: 8rpx;">
			</view>
			<view class="flex justify-between align-center" style="font-size: 24rpx; padding: 6rpx 0;">
				<view class="">
					<!-- <u-notice-bar mode="horizontal" :list="list"></u-notice-bar> -->
				</view>
				<view class="">
				</view>
			</view>
			<view class="">
				<!-- <u-notice-bar
					mode="vertical"
					:list="list">
				</u-notice-bar> -->
				
				<Msgbar ref="msgbar" height="160rpx" width="500rpx">
				  <template #item="{ data }">
				    <view>
				      {{ data.name }} 
					  <text>{{data.phone}}</text>
				    </view>
				
				  </template>
				</Msgbar>
			</view>
			
		</view>
	</view>
</template>

<script>
	/**
	 * 自定义之功能列表
	 * @property {Object} detail - 列表信息
	 */
	import Msgbar from '@/components/silencc-msgbar/index'
	
	export default {
		components: {
			Msgbar
		},
		data() {
			return {
				list: [
					'寒雨连江夜入吴',
					'平明送客楚山孤',
					'洛阳亲友如相问',
					'一片冰心在玉壶'
				]
			};
		},
		props: {
			detail: {
				type: Object,
				default: null
			}
		},
		onShow() {
		  this.$refs.msgbar && this.$refs.msgbar.start()
		  this.getNames()
		},
		onHide() {
		  this.$refs.msgbar.clear()
		},
		computed: {},
		methods: {
			jump(data) {
				this.$tools.routerTo(data.path);
			},
			
			
			// 添加名单
			getNames() {
			  this.$refs.msgbar.addData([
			    {
			      name: '刘xx',
			      phone: 13322114433,
			      gift: '保温杯'
			    },
			    {
			      name: '刘xx',
			      phone: 13322114433,
			      gift: '保温杯'
			    },
			    {
			      name: '刘xx',
			      phone: 13322114433,
			      gift: '保温杯'
			    },
			    {
			      name: '刘xx',
			      phone: 13322114433,
			      gift: '保温杯'
			    },
			    {
			      name: '刘xx',
			      phone: 13322114433,
			      gift: '保温杯'
			    },
			    {
			      name: '刘xx',
			      phone: 13322114433,
			      gift: '保温杯'
			    }
			  ])
			  this.$refs.msgbar.start()
			}
		}
	};
</script>

<style lang="scss">
	// 宫格
	.tools-box {
		background: #fff;
		display: flex;
		flex-wrap: wrap;
		padding-bottom: 40rpx;
		margin-bottom: 20rpx;

		.tool-item {
			width: (750rpx/4);
			padding-top: 40rpx;

			.tool-img {
				width: 44rpx;
				height: 44rpx;
				// background: #ccc;
			}

			.item-title {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: rgba(153, 153, 153, 1);
				line-height: 24rpx;
				padding-top: 30rpx;
			}
		}
	}

	.header-unm {
		padding: 10rpx 20rpx;

		background-color: #FFFFFF;
	}

	// 列表
	.menu-list-box {
		.menu-item {
			height: 100rpx;
			padding: 0 30rpx;
			background: #fff;
			border-bottom: 1rpx solid #f3f3f3;

			.item-img {
				width: 44rpx;
				height: 44rpx;
				margin-right: 20rpx;
				// background: #ccc;
			}

			.item-title {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: rgba(153, 153, 153, 1);
				line-height: 24rpx;
			}

			.item-arrow {
				color: rgba(153, 153, 153, 1);
			}
		}
	}
</style>
